package com.miroservice.chapter2.pojo;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

public class Singer {


    @NotNull(message = "名称不能为空")
    @Size(min = 2, max = 5)
    private String fistName;

    private String lastName;

    @NotNull(message = "性别不能为空")
    private Genre genre;


    @Phone()
    private String phone;


    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getFistName() {
        return fistName;
    }

    public void setFistName(String fistName) {
        this.fistName = fistName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public Genre getGenre() {
        return genre;
    }

    public void setGenre(Genre genre) {
        this.genre = genre;
    }
}
